package com.decent.ejfadmin.user.dao;

import com.decent.ejfadmin.common.bean.SupUserRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * sup会员操作记录sql管理
 *
 * @author wangyx
 */
@Mapper
@Repository
public interface SupUserRecordDao {
    /**
     * 创建操作记录
     *
     * @param record 操作记录
     */
    @Insert("insert into yuhuang_sup_user_record (user_id, administer, create_time, record) values (#{record.userId}, " +
            "#{record.administer}, sysdate(), #{record.record})")
    void create(@Param("record") SupUserRecord record);
}
